home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / CIncludes / locale.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-05  |  1.8 KB  |  81 lines  |  [TEXT/MPS ]

  1. /*
  2.     locale.h - Localization
  3.     
  4.     Copyright Apple Computer, Inc.  1988, 1990, 1993-1995
  5.     All rights reserved.
  6.     
  7. */
  8.  
  9. #ifndef __LOCALE__
  10. #define __LOCALE__
  11.  
  12. /*
  13.  * Get common declarations 
  14.  */
  15.  
  16. #include <NullDef.h>
  17.  
  18. /* 
  19.  *   Declarations
  20.  */
  21.  
  22. #define LC_ALL        1 /* entire locale */
  23. #define LC_COLLATE    2 /* strcoll and strxfrm functions */
  24. #define LC_CTYPE      3 /* character handling and multibyte functions */
  25. #define LC_MONETARY   4 /* monetary formatting information returned by localeconv */
  26. #define LC_NUMERIC    5 /* decimal point formatting input/output and string conversions */
  27. #define LC_TIME       6 /* strftime function */
  28.  
  29. #ifdef powerc
  30. #pragma options align=power
  31. #endif
  32. struct lconv {
  33.     char *decimal_point;       /* "." */
  34.     char *thousands_sep;       /* "" */
  35.     char *grouping;            /* "" */
  36.     char *int_curr_symbol;     /* "" */
  37.     char *currency_symbol;     /* "" */
  38.     char *mon_decimal_point;   /* "" */
  39.     char *mon_thousands_sep;   /* "" */
  40.     char *mon_grouping;        /* "" */
  41.     char *positive_sign;       /* "" */
  42.     char *negative_sign;       /* "" */
  43.     char frac_digits;          /* CHAR_MAX */
  44.     char int_frac_digits;      /* CHAR_MAX */
  45.     char p_cs_precedes;        /* CHAR_MAX */
  46.     char p_sep_by_space;       /* CHAR_MAX */
  47.     char n_cs_precedes;        /* CHAR_MAX */
  48.     char n_sep_by_space;       /* CHAR_MAX */
  49.     char p_sign_posn;          /* CHAR_MAX */
  50.     char n_sign_posn;          /* CHAR_MAX */
  51. };
  52. #ifdef powerc
  53. #pragma options align=reset
  54. #endif
  55.  
  56.  
  57. #ifdef __cplusplus
  58. extern "C" {
  59. #endif
  60.  
  61. /*
  62.  *  functions
  63.  */
  64.  
  65. #if defined (__CFM68K__) && !defined (UsingStaticLibs)
  66.     #pragma import on
  67. #endif
  68.  
  69. char *setlocale (int category, const char *locale);
  70. struct lconv *localeconv (void);
  71.  
  72. #if defined (__CFM68K__) && !defined (UsingStaticLibs)
  73.     #pragma import off
  74. #endif
  75.  
  76. #ifdef __cplusplus
  77. }
  78. #endif
  79.  
  80. #endif /*__LOCALE__*/
  81.